<?php
include("general_include.php");
include "top.php";
include "left.php";

if(isset($_SESSION['forum_username'])) $_GET['username'] = $_SESSION['forum_username'];
if(isset($_SESSION['error_forum'])) $_GET['error'] = $_SESSION['error_forum'];

/*unset(@$_SESSION['forum_username']);
session_unregister("forum_username");
unset(@$_SESSION['error_forum']);
session_unregister("error_forum");*/
$userSql="SELECT * FROM ".TABLEPREFIX."_user where user_id='".$_SESSION['new_reg_id']."'";
$record = $UserManagerObjAjax->GetRecords("Row",$userSql);

$_SESSION['user_id']=$_SESSION['new_reg_id'];
$_SESSION['name'] = $record['name'];

unset($_SESSION['new_reg_id']);
//$smarty->assign("forum_username", @$_GET['username']);
//$smarty->assign("error_forum", @$_GET['error']);
$smarty->display("registration_success.tpl");
include("footer.php");
?>